﻿<Window x:Class="SharePointSearchBench.QueryPacketSetup"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="SharePointSearchBench" Height="507" Width="512" ResizeMode="NoResize" ShowInTaskbar="False">
	
	
	<Grid Style="{DynamicResource mainGrid}">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<Border Style="{StaticResource containerBorderStyle}" Grid.Row="0">

			<StackPanel>
				<TextBlock Margin="5" Grid.Row="0" x:Name="packetTypeTextBlock"/>
				<TextBlock Margin="5" TextWrapping="Wrap">
					Use the %QUERYTOKEN% and %RESULTCOUNT% tokens for substituting the actual query
					text (either full text or keyword) and result row count values, respectively.
				</TextBlock>
				<TextBlock Margin="5" TextWrapping="Wrap">
					For keyword queries, use the %VIEWFIELDS% token to mark the area where
					custom properties/columns are placed in the query packet.
				</TextBlock>
			</StackPanel>
		</Border>
		<TextBox
				  ScrollViewer.CanContentScroll="True"
				  ScrollViewer.HorizontalScrollBarVisibility="Hidden"
				  ScrollViewer.VerticalScrollBarVisibility="Auto"
				  Margin="10"
				  Grid.Row="1"
				  AcceptsReturn="True"
				  VerticalAlignment="Stretch"
				  TextWrapping="Wrap"
				   TextChanged="PacketTextChanged"
				  x:Name="packetValueTextBox"/>

		<StackPanel Margin="10" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
			<Button x:Name="revertButton" Style="{StaticResource button}" Click="RevertButtonClick">Revert to Original</Button>
			<Button x:Name="cancelButton" Style="{StaticResource button}" Click="CancelButtonClick">Cancel</Button>
			<Button x:Name="okButton" IsDefault="True" Style="{StaticResource button}" Click="OkButtonClick">OK</Button>
		</StackPanel>
	</Grid>
</Window>
